import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import tan.jia.MyUtils;
import tan.jia.dao.UserMapper;
import tan.jia.pojo.User;

import java.util.List;

public class MyTset {
    @Test
    public void Test()
    {
        SqlSession sqlsession = MyUtils.getSqlsession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        List<User> user = mapper.getUser();
        for (User user1 : user) {
            System.out.println(user1);
        }
        sqlsession.close();
    }
}
